package com.java.dp.command;

/**
 * @Author lizhilong
 * @create 2019/12/6 14:22
 * @desc 命令接受者
 */
public class CommandReceiver {

    private  Command command;

    public CommandReceiver(Command command){
        this.command = command;
    }

    public void  call(){
        this.command.execute();
    }
}
